﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.Goods;
using Coldairarrow.Entity.Home;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.IBusiness.Goods
{
    public interface IBTB_HomeBusiness
    {
        Task<PageResult<BTB_GoodsDto>> GetIndexGoosList(PageInput<GetIndexGoosList> input);
        List<BTB_Goods> GetTheDataName(string where);
        Task<List<BTB_GoodsTypeDto>> GetAll(int Top);
        Task<PageResult<BTB_GoodsDto>> GetWeChatListAsync(PageInput<GoodsDTO> input);
        Task<List<BTB_GoodsDto>> GetIsHont(int Top);
        Task<List<BTB_GoodsDto>> GetPreferential(int Top);
        Task<PageResult<BTB_GoodsDto>> GetDataListAsync(PageInput<BTB_GoodsTypeDto> input);
        Task<PageResult<BTB_GoodsDto>> GetGoodsList(PageInput<BTB_GoodsDto> input);
        Task<PageResult<TheGoodsDTO>> GetGSDataListAsync(PageInput<GetDataSearchDTO> input);
        Task<List<BTB_NewProducts>> GetNewProducts(string id);
        Task<List<BTB_Supplier>> GetSupplier(string id);
        Task<List<BTB_GoodsDto>> GetPreferentialListAsync();
        List<GoodsSpecificationsDTO> Specifications(string id);
        Task<List<BTB_GoodsDto>> GetGoods(string Goodsname);
        Task<List<BTB_GoodsTypeDto>> Get();
    }

    public class GetIndexSearch
    {
        public bool SType { get; set; }

        public int PageIndex { get; set; } = 1;

        public int PageRow { get; set; } = 10;

    }

    public class GetIndexGoosList
    {
        /// <summary>
        /// 是否特惠
        /// </summary>
        public bool? Preferential { set; get; }

        /// <summary>
        /// 是否热销
        /// </summary>
        public bool? IsHot { set; get; }

        /// <summary>
        /// 是否今日爆款
        /// </summary>
        public bool? SpecialType { set; get; }

        /// <summary>
        /// 是否积分商品
        /// </summary>
        public bool? IsPointGoods { set; get; } = false;

    }

}
